/*
 * 铁路道岔故障检测信息管理系统
 * Design by 魏梓晟
 * Version :1.0
 */
package com.railway.switchs.domain.dto.log;

import java.io.Serializable;

import com.railway.switchs.domain.pojo.log.OperatorLogPojo;
import com.railway.switchs.enums.EnumOperatorBillType;
import com.railway.switchs.enums.EnumOperatorResult;
import com.railway.switchs.enums.EnumOperatorType;
import com.railway.switchs.utils.StringUtil;
import lombok.Data;
/**
 * operator_log - 操作日志表 实体类
 * 
 * @author 魏梓晟
 */
@Data
public class OperatorLog extends OperatorLogPojo implements Serializable {

    private static final long serialVersionUID = 1L;
	
	public OperatorLog(){

    }

    public OperatorLog(Long id){
        this.setId(id);
    }

    private String operatorName;

	private String operatorBillTypeDesc;

	private String operatorTypeDesc;

	private String operatorResultDesc;

    public String getOperatorBillTypeDesc(){
        if(StringUtil.isEmpty(getOperatorBillType())){
            return "";
        }
        return EnumOperatorBillType.getName(getOperatorBillType());
    }

    public String getOperatorTypeDesc(){
        if(StringUtil.isEmpty(getOperatorType())){
            return "";
        }
        return EnumOperatorType.getName(getOperatorType());
    }

    public String getOperatorResultDesc(){
        if(StringUtil.isEmpty(getOperatorResult())){
            return "";
        }
        return EnumOperatorResult.getName(getOperatorResult());
    }

}
